import { axiosGet, axiosPost, axiosPut, axiosDelete } from '/@/api/RequestBase';
import { BaseKeywordPageInput, SqlSugarPagedList } from '/@/api/BaseDto';

import { InvKuCunInput, InvKuCunOutput } from './dto/InvKuCunInput';
import { InvKuCunUpdateInput } from './dto/InvKuCunUpdateInput';
import { InvKuCunPageInput } from './dto/InvKuCunPageInput';

export type { InvKuCunInput, InvKuCunUpdateInput, InvKuCunOutput, InvKuCunPageInput };

const service = 'InvKuCun/';

export const InvKuCunApi = {
	page: (data?: BaseKeywordPageInput) => {
		return axiosPost<SqlSugarPagedList<InvKuCunOutput>>(service + 'page', data);
	},
	getByCode: (code: string) => {
		return axiosGet<Array<InvKuCunOutput>>(service + 'getByCode' + `/${code}`);
	},
};
